import { defineStore } from 'pinia'

export const useStore = defineStore('zsz', {
    state: () => ({
        // 销售过程统计
        echarts1: {
            width: '100%',
            height: '450px',
            options: {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },
                legend: {
                    bottom: '6%'
                },
                grid: {
                    top: '8%',
                    left: '3%',
                    right: '4%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: [0, 0.01],
                    data: ["2019年1月", "2019年2月", "2019年3月", "2019年4月", "2019年5月", "2019年6月", "2019年7月", "2019年8月", "2019年9月", "2019年10月", "2019年11月", "2019年12月"]
                },
                yAxis: {
                    type: 'value',
                    data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
                },
                series: [
                    {
                        name: '预计销售金额',
                        type: 'bar',
                        itemStyle: {
                            color: "#3aa0ff"
                        },
                        data: [700000, 690000, 950000, 1450000, 1840000, 2150000, 2520000, 2650000, 2330000, 1830000, 1390000, 960000]
                    },
                    {
                        name: '概率金额',
                        type: 'bar',
                        itemStyle: {
                            color: "#4ecb73"
                        },
                        data: [390000, 420000, 570000, 850000, 1190000, 1520000, 1700000, 1660000, 1420000, 1030000, 660000, 480000]
                    }
                ]
            }
        },
        echarts2: {
            width: '100%',
            height: '450px',
            options: {
                tooltip: {
                    trigger: 'item',
                    formatter: '{b} {c}  {d}%'
                },
                series: [
                    {
                        name: 'Funnel',
                        type: 'funnel',
                        top: 30,
                        bottom: 30,
                        left: '10%',
                        width: '80%',
                        minSize: '30%',
                        maxSize: '100%',
                        sort: 'descending',
                        label: {
                            show: true,
                            position: 'right',
                            formatter: '{b} {c} '
                        },
                        labelLine: {
                            length: 10,
                            lineStyle: {
                                width: 1,
                                type: 'solid'
                            }
                        },
                        itemStyle: {
                            borderColor: '#fff',
                            borderWidth: 1,
                        },
                        emphasis: {
                            label: {
                                fontSize: 20
                            }
                        },
                        data: [
                            { value: 120, name: '流失商机' },
                            { value: 150, name: '成交商机' },
                            { value: 250, name: '产品报价' },
                            { value: 350, name: '深入沟通' },
                            { value: 500, name: '初步洽谈' }
                        ]
                    }
                ]
            }
        },
        echarts3: {
            width: "100%",
            height: '450px',
            options: {
                tooltip: {
                    trigger: 'axis'
                },
                legend: {
                    data: ['线索', '商机', '客户', '订单'],
                    bottom: 30
                },
                grid: {
                    left: '3%',
                    right: '4%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: false,
                    data: ['2019年1月', '2019年2月', '2019年3月', '2019年4月', '2019年5月', '2019年6月', '2019年7月', '2019年8月', '2019年9月', '2019年10月', '2019年11月', '2019年12月']
                },
                yAxis: {
                    type: 'value'
                },
                series: [
                    {
                        name: '线索',
                        type: 'line',
                        stack: 'Total',
                        data: [90, 89, 115, 175, 194, 235, 262, 275, 253, 203, 169, 136]
                    },
                    {
                        name: '商机',
                        type: 'line',
                        stack: 'Total',
                        data: [70, 69, 95, 145, 184, 215, 252, 265, 233, 183, 139, 96]
                    },
                    {
                        name: '客户',
                        type: 'line',
                        stack: 'Total',
                        data: [80, 59, 79, 105, 134, 185, 152, 225, 213, 123, 159, 154]
                    },
                    {
                        name: '订单',
                        type: 'line',
                        stack: 'Total',
                        data: [39, 42, 57, 85, 119, 152, 170, 166, 142, 103, 66, 48]
                    }
                ]
            }
        },
        echarts4: {
            width: "100%",
            height: "450px",
            options: {
                legend: {
                    bottom: 20
                },
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },
                dataset: {
                    dimensions: ['product', '跟进次数', '跟进线索次数', '跟进客户次数', '跟进商机次数', '跟进订单次数'],
                    source: [
                        { product: '赵小刚', '跟进次数': 265, '跟进线索次数': 166, '跟进客户次数': 212, '跟进商机次数': 155, '跟进订单次数': 55 },
                        { product: '李小红', '跟进次数': 252, '跟进线索次数': 170, '跟进客户次数': 185, '跟进商机次数': 150, '跟进订单次数': 50 },
                        { product: '王小明', '跟进次数': 233, '跟进线索次数': 142, '跟进客户次数': 183, '跟进商机次数': 146, '跟进订单次数': 46 },
                        { product: '周小伟', '跟进次数': 215, '跟进线索次数': 152, '跟进客户次数': 155, '跟进商机次数': 122, '跟进订单次数': 22 },
                        { product: '郭小涛', '跟进次数': 184, '跟进线索次数': 119, '跟进客户次数': 124, '跟进商机次数': 112, '跟进订单次数': 32 },
                        { product: '张小刚', '跟进次数': 183, '跟进线索次数': 103, '跟进客户次数': 123, '跟进商机次数': 99, '跟进订单次数': 45 },
                        { product: '李小刚', '跟进次数': 145, '跟进线索次数': 85, '跟进客户次数': 105, '跟进商机次数': 95, '跟进订单次数': 65 },
                        { product: '王小红', '跟进次数': 95, '跟进线索次数': 57, '跟进客户次数': 60, '跟进商机次数': 79, '跟进订单次数': 57 },
                        { product: '周小明', '跟进次数': 43.3, '跟进线索次数': 85.8, '跟进客户次数': 93.7, '跟进商机次数': 93.7, '跟进订单次数': 100 },
                        { product: '张小伟', '跟进次数': 70, '跟进线索次数': 39, '跟进客户次数': 49, '跟进商机次数': 47, '跟进订单次数': 35 },
                    ]
                },
                xAxis: { type: 'category' },
                yAxis: {},
                series: [{ type: 'bar', barGap: 0, barCategoryGap: '50%' }, { type: 'bar', barGap: 0, barCategoryGap: '50%' }, { type: 'bar', barGap: 0, barCategoryGap: '50%' }, { type: 'bar', barGap: 0, barCategoryGap: '50%' }, { type: 'bar', barGap: 0, barCategoryGap: '50%' }]
            }
        },
        echarts5: {
            width: "100%",
            height: "800px",
            options: {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },

                grid: {
                    left: '3%',
                    right: '4%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: [0, 0.01],
                    data: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"]
                },
                yAxis: {
                    type: 'value',
                    data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
                },
                series: [
                    {
                        name: '跟进次数',
                        type: 'bar',
                        itemStyle: {
                            color: "#3aa0ff"
                        },
                        data: [90, 89, 115, 175, 194, 235, 262, 275, 253, 203, 169, 136]
                    }
                ]
            }
        },
        echarts6: {
            width: "100%",
            height: "800px",
            options: {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },
                legend: {
                    bottom: 30
                },
                grid: {
                    left: '3%',
                    right: '4%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: [0, 0.01],
                    data: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"]
                },
                yAxis: {
                    type: 'value',
                    data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
                },
                series: [
                    {
                        name: '2018年同比增长率%',
                        type: 'bar',
                        itemStyle: {
                            color: "#3aa0ff"
                        },
                        data: [7, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
                    },
                    {
                        name: '2019年同比增长率',
                        type: 'bar',
                        itemStyle: {
                            color: "#4ecb73"
                        },
                        data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17, 16.6, 14.2, 10.3, 6.6, 4.8]
                    }
                ]
            }
        },
        // 销售业绩统计
        echarts21: {
            width: "100%",
            height: "450px",
            options: {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },
                legend: {
                    bottom: '6%'
                },
                grid: {
                    top: '8%',
                    left: '3%',
                    right: '4%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: [0, 0.01],
                    data: ["2019年1月", "2019年2月", "2019年3月", "2019年4月", "2019年5月", "2019年6月", "2019年7月", "2019年8月", "2019年9月", "2019年10月", "2019年11月", "2019年12月"]
                },
                yAxis: {
                    type: 'value',
                    data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
                },
                series: [
                    {
                        name: '目标金额',
                        type: 'bar',
                        itemStyle: {
                            color: "#3aa0ff"
                        },
                        data: [700000, 690000, 950000, 1450000, 1840000, 2150000, 2520000, 2650000, 2330000, 1830000, 1390000, 960000]
                    },
                    {
                        name: '成交金额',
                        type: 'bar',
                        itemStyle: {
                            color: "#4ecb73"
                        },
                        data: [390000, 420000, 570000, 850000, 1190000, 1520000, 1700000, 1660000, 1420000, 1030000, 660000, 480000]
                    }
                ]
            }
        },
        echarts22: {
            width: "100%",
            height: "450px",
            options: {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },

                grid: {
                    left: '3%',
                    right: '4%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: [0, 0.01],
                    data: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"]
                },
                yAxis: {
                    type: 'value',
                    data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
                },
                series: [
                    {
                        name: '跟进次数',
                        type: 'bar',
                        itemStyle: {
                            color: "#3aa0ff"
                        },
                        data: [90, 89, 115, 175, 194, 235, 262, 275, 253, 203, 169, 136]
                    }
                ]
            }
        },
        echarts23: {
            width: "100%",
            height: "450px",
            options: {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },
                legend: {
                    bottom: 30
                },
                grid: {
                    left: '3%',
                    right: '4%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: [0, 0.01],
                    data: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"]
                },
                yAxis: {
                    type: 'value',
                    data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
                },
                series: [
                    {
                        name: '计划金额%',
                        type: 'bar',
                        itemStyle: {
                            color: "#3aa0ff"
                        },
                        data: [7, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
                    },
                    {
                        name: '完成金额',
                        type: 'bar',
                        itemStyle: {
                            color: "#4ecb73"
                        },
                        data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17, 16.6, 14.2, 10.3, 6.6, 4.8]
                    }
                ]
            }
        },
        echarts24: {
            width: "100%",
            height: "450px",
            options: {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },

                grid: {
                    left: '3%',
                    right: '4%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: [0, 0.01],
                    data: ["产品名称1", "产品名称2", "产品名称3", "产品名称4", "产品名称5", "产品名称6", "产品名称7", "产品名称8", "产品名称9", "产品名称10", "产品名称11", "产品名称12"]
                },
                yAxis: {
                    type: 'value',
                    data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
                },
                series: [
                    {
                        name: '跟进次数',
                        type: 'bar',
                        itemStyle: {
                            color: "#3aa0ff"
                        },
                        data: [90, 89, 115, 175, 194, 235, 262, 275, 253, 203, 169, 136]
                    }
                ]
            }
        },
        echarts25: {
            width: "100%",
            height: "800px",
            options: {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        label: {
                            backgroundColor: '#6a7985'
                        },
                    }
                },
                legend: {
                    data: ['成交金额', '销售成本', '销售利润'],
                    bottom: 0
                },
                grid: {
                    top: 30,
                    left: '3%',
                    right: '4%',
                    bottom: 30,
                    containLabel: true
                },
                xAxis: [
                    {
                        type: 'category',
                        boundaryGap: false,
                        data: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"]
                    }
                ],
                yAxis: [
                    {
                        type: 'value'
                    }
                ],
                series: [
                    {
                        name: '成交金额',
                        type: 'line',
                        stack: 'Total',
                        areaStyle: {},
                        emphasis: {
                            focus: 'series'
                        },
                        data: [700000, 690000, 950000, 1450000, 1840000, 2150000, 2520000, 2650000, 2330000, 1830000, 1390000, 960000]
                    },
                    {
                        name: '销售成本',
                        type: 'line',
                        stack: 'Total',
                        areaStyle: {},
                        emphasis: {
                            focus: 'series'
                        },
                        data: [400000, 300000, 550000, 1250000, 1640000, 1950000, 2320000, 2450000, 2130000, 1630000, 1290000, 960000]
                    },
                    {
                        name: '销售利润',
                        type: 'line',
                        stack: 'Total',
                        areaStyle: {},
                        emphasis: {
                            focus: 'series'
                        },
                        data: [300000, 390000, 400000, 850000, 1190000, 1520000, 1700000, 1660000, 1420000, 1030000, 660000, 480000]
                    }
                ]
            }
        },
        // 销售排名统计
        echarts31: {
            width: "100%",
            height: "450px",
            options: {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },
                legend: {
                    bottom: '6%'
                },
                grid: {
                    top: '8%',
                    left: '3%',
                    right: '4%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: [0, 0.01],
                    data: ['李小刚', '王小红', '周小明', '张小刚', '郭小涛', '张小伟', '周小伟', '王小明', '赵小刚', '李小红']
                },
                yAxis: {
                    type: 'value',
                    data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
                },
                series: [
                    {
                        name: '目标金额',
                        type: 'bar',
                        itemStyle: {
                            color: "#3aa0ff"
                        },
                        data: [700000, 690000, 950000, 1450000, 1840000, 2150000, 2520000, 2650000, 2330000, 1830000]
                    },
                    {
                        name: '成交金额',
                        type: 'bar',
                        itemStyle: {
                            color: "#4ecb73"
                        },
                        data: [390000, 420000, 570000, 850000, 1190000, 1520000, 1700000, 1660000, 1420000, 1030000]
                    }
                ]
            }
        },
        echarts32: {
            width: "100%",
            height: "450px",
            options: {
                legend: {
                    bottom: 20
                },
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },
                dataset: {
                    dimensions: ['product', '线索', '商机', '客户', '订单'],
                    source: [
                        { product: '赵小刚', '线索': 265, '商机': 166, '客户': 212, '订单': 155 },
                        { product: '李小红', '线索': 252, '商机': 170, '客户': 185, '订单': 150 },
                        { product: '王小明', '线索': 233, '商机': 142, '客户': 183, '订单': 146 },
                        { product: '周小伟', '线索': 215, '商机': 152, '客户': 155, '订单': 122 },
                        { product: '郭小涛', '线索': 184, '商机': 119, '客户': 124, '订单': 112 },
                        { product: '张小刚', '线索': 183, '商机': 103, '客户': 123, '订单': 99 },
                        { product: '李小刚', '线索': 145, '商机': 85, '客户': 105, '订单': 95 },
                        { product: '王小红', '线索': 95, '商机': 57, '客户': 60, '订单': 79 },
                        { product: '周小明', '线索': 43.3, '商机': 85.8, '客户': 93.7, '订单': 93.7 },
                        { product: '张小伟', '线索': 70, '商机': 39, '客户': 49, '订单': 47 },
                    ]
                },
                xAxis: { type: 'category' },
                yAxis: {},
                series: [{ type: 'bar', barGap: 0, barCategoryGap: '50%' }, { type: 'bar', barGap: 0, barCategoryGap: '50%' }, { type: 'bar', barGap: 0, barCategoryGap: '50%' }, { type: 'bar', barGap: 0, barCategoryGap: '50%' }]
            }
        },
        echarts33: {
            width: "100%",
            height: "450px",
            options: {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },

                grid: {
                    left: '3%',
                    right: '4%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: [0, 0.01],
                    data: ['李小刚', '王小红', '周小明', '张小刚', '郭小涛', '张小伟', '周小伟', '王小明', '赵小刚', '李小红']
                },
                yAxis: {
                    type: 'value',
                    data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
                },
                series: [
                    {
                        name: '跟进次数',
                        type: 'bar',
                        itemStyle: {
                            color: "#3aa0ff"
                        },
                        data: [1700000, 1660000, 1520000, 1420000, 1190000, 1030000, 850000, 570000, 390000, 420000]
                    }
                ]
            }
        },
        echarts34: {
            width: "100%",
            height: "450px",
            options: {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },

                grid: {
                    left: '3%',
                    right: '4%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: [0, 0.01],
                    data: ['李小刚', '王小红', '周小明', '张小刚', '郭小涛', '张小伟', '周小伟', '王小明', '赵小刚', '李小红']
                },
                yAxis: {
                    type: 'value',
                    data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
                },
                series: [
                    {
                        name: '跟进次数',
                        type: 'bar',
                        itemStyle: {
                            color: "#3aa0ff"
                        },
                        data: [1700000, 1660000, 1520000, 1420000, 1190000, 1030000, 850000, 570000, 390000, 420000]
                    }
                ]
            }
        },
        echarts35: {
            width: "100%",
            height: "450px",
            options: {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },
                legend: {
                    bottom: '6%'
                },
                grid: {
                    top: '8%',
                    left: '3%',
                    right: '4%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: [0, 0.01],
                    data: ['李小刚', '王小红', '周小明', '张小刚', '郭小涛', '张小伟', '周小伟', '王小明', '赵小刚', '李小红']
                },
                yAxis: {
                    type: 'value',
                    data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
                },
                series: [
                    {
                        name: '新增线索',
                        type: 'bar',
                        itemStyle: {
                            color: "#3aa0ff"
                        },
                        data: [700000, 690000, 950000, 1450000, 1840000, 2150000, 2520000, 2650000, 2330000, 1830000]
                    },
                    {
                        name: '已转客户',
                        type: 'bar',
                        itemStyle: {
                            color: "#4ecb73"
                        },
                        data: [390000, 420000, 570000, 850000, 1190000, 1520000, 1700000, 1660000, 1420000, 1030000]
                    }
                ]
            }
        },
        echarts36: {
            width: "100%",
            height: "450px",
            options: {
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },
                legend: {
                    bottom: '6%'
                },
                grid: {
                    top: '8%',
                    left: '3%',
                    right: '4%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: [0, 0.01],
                    data: ['李小刚', '王小红', '周小明', '张小刚', '郭小涛', '张小伟', '周小伟', '王小明', '赵小刚', '李小红']
                },
                yAxis: {
                    type: 'value',
                    data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
                },
                series: [
                    {
                        name: '成交金额',
                        type: 'bar',
                        itemStyle: {
                            color: "#3aa0ff"
                        },
                        data: [700000, 690000, 950000, 1450000, 1840000, 2150000, 2520000, 2650000, 2330000, 1830000]
                    },
                    {
                        name: '费用金额',
                        type: 'bar',
                        itemStyle: {
                            color: "#4ecb73"
                        },
                        data: [390000, 420000, 570000, 850000, 1190000, 1520000, 1700000, 1660000, 1420000, 1030000]
                    }
                ]
            }
        },
        echarts37: {
            width: "100%",
            height: "450px",
            options: {
                legend: {
                    bottom: 20
                },
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },
                dataset: {
                    dimensions: ['product', '跟进次数', '拜访次数', '签到次数'],
                    source: [
                        { product: '赵小刚', '跟进次数': 265, '拜访次数': 166, '签到次数': 212 },
                        { product: '李小红', '跟进次数': 252, '拜访次数': 170, '签到次数': 185 },
                        { product: '王小明', '跟进次数': 233, '拜访次数': 142, '签到次数': 183 },
                        { product: '周小伟', '跟进次数': 215, '拜访次数': 152, '签到次数': 155 },
                        { product: '郭小涛', '跟进次数': 184, '拜访次数': 119, '签到次数': 124 },
                        { product: '张小刚', '跟进次数': 183, '拜访次数': 103, '签到次数': 123 },
                        { product: '李小刚', '跟进次数': 145, '拜访次数': 85, '签到次数': 105 },
                        { product: '王小红', '跟进次数': 95, '拜访次数': 57, '签到次数': 60 },
                        { product: '周小明', '跟进次数': 43.3, '拜访次数': 85.8, '签到次数': 93.7 },
                        { product: '张小伟', '跟进次数': 70, '拜访次数': 39, '签到次数': 49 },
                    ]
                },
                xAxis: { type: 'category' },
                yAxis: {},
                series: [{ type: 'bar', barGap: 0, barCategoryGap: '50%' }, { type: 'bar', barGap: 0, barCategoryGap: '50%' }, { type: 'bar', barGap: 0, barCategoryGap: '50%' }]
            }
        },
        echarts38: {
            width: "100%",
            height: "450px",
            options: {
                legend: {
                    bottom: 20
                },
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },
                dataset: {
                    dimensions: ['product', '呼出次数', '有效呼出', '呼入次数'],
                    source: [
                        { product: '赵小刚', '呼出次数': 265, '有效呼出': 166, '呼入次数': 212 },
                        { product: '李小红', '呼出次数': 252, '有效呼出': 170, '呼入次数': 185 },
                        { product: '王小明', '呼出次数': 233, '有效呼出': 142, '呼入次数': 183 },
                        { product: '周小伟', '呼出次数': 215, '有效呼出': 152, '呼入次数': 155 },
                        { product: '郭小涛', '呼出次数': 184, '有效呼出': 119, '呼入次数': 124 },
                        { product: '张小刚', '呼出次数': 183, '有效呼出': 103, '呼入次数': 123 },
                        { product: '李小刚', '呼出次数': 145, '有效呼出': 85, '呼入次数': 105 },
                        { product: '王小红', '呼出次数': 95, '有效呼出': 57, '呼入次数': 60 },
                        { product: '周小明', '呼出次数': 43.3, '有效呼出': 85.8, '呼入次数': 93.7 },
                        { product: '张小伟', '呼出次数': 70, '有效呼出': 39, '呼入次数': 49 },
                    ]
                },
                xAxis: { type: 'category' },
                yAxis: {},
                series: [{ type: 'bar', barGap: 0, barCategoryGap: '50%' }, { type: 'bar', barGap: 0, barCategoryGap: '50%' }, { type: 'bar', barGap: 0, barCategoryGap: '50%' }]
            }
        },
        // 客户数据分析
        echarts41: {
            width: "50%",
            height: "450px",
            options: {
                title: {
                    text: '客户状态',
                    top: 20
                },
                tooltip: {
                    trigger: 'item',
                    formatter: '{b} : {d}%'
                },
                legend: {
                    bottom: 30,
                    left: 'center',
                    data: ['了解产品', '正在跟进', '正在试用', '准备购买', '准备付款', '已经购买', '暂时搁置']
                },
                series: [
                    {
                        type: 'pie',
                        radius: '65%',
                        center: ['50%', '45%'],
                        selectedMode: 'single',
                        data: [

                            { value: 17.94, name: '了解产品' },
                            { value: 17.06, name: '正在跟进' },
                            { value: 15.78, name: '正在试用' },
                            { value: 14.56, name: '准备购买' },
                            { value: 12.46, name: '准备付款' },
                            { value: 12.39, name: '已经购买' },
                            { value: 9.82, name: '暂时搁置' },
                        ],
                        emphasis: {
                            itemStyle: {
                                shadowBlur: 10,
                                shadowOffsetX: 0,
                                shadowColor: 'rgba(0, 0, 0, 0.5)'
                            },
                        },
                        padAngle: 1
                    }
                ]
            }
        },
        echarts412: {
            width: "50%",
            height: "450px",
            options: {
                title: {
                    text: '客户星级',
                    top: 20
                },
                tooltip: {
                    trigger: 'item',
                    formatter: '{b} : {d}%'
                },
                legend: {
                    bottom: 30,
                    left: 'center',
                    data: ['一星客户', '二星客户', '三星客户', '四星客户', '五星客户']
                },
                series: [
                    {
                        type: 'pie',
                        radius: '65%',
                        center: ['50%', '45%'],
                        selectedMode: 'single',
                        data: [

                            { value: 26.98, name: '一星客户' },
                            { value: 26.83, name: '二星客户' },
                            { value: 21.26, name: '三星客户' },
                            { value: 13.93, name: '四星客户' },
                            { value: 11.00, name: '五星客户' },
                        ],
                        emphasis: {
                            itemStyle: {
                                shadowBlur: 10,
                                shadowOffsetX: 0,
                                shadowColor: 'rgba(0, 0, 0, 0.5)'
                            },
                        },
                        padAngle: 1
                    }
                ]
            }
        },
        echarts413: {
            width: "50%",
            height: "450px",
            options: {
                title: {
                    text: '客户来源',
                    top: 20
                },
                tooltip: {
                    trigger: 'item',
                    formatter: '{b} : {d}%'
                },
                legend: {
                    bottom: 30,
                    left: 'center',
                    data: ['电话营销', '主动来电', '客户介绍', '朋友介绍', '独立开发', '网络搜索', '广告杂志', '展会促销', '其他途径']
                },
                series: [
                    {
                        type: 'pie',
                        radius: '65%',
                        center: ['50%', '45%'],
                        selectedMode: 'single',
                        data: [
                            { value: 16.09, name: '电话营销' },
                            { value: 15.30, name: '主动来电' },
                            { value: 14.15, name: '客户介绍' },
                            { value: 13.05, name: '朋友介绍' },
                            { value: 11.17, name: '独立开发' },
                            { value: 11.11, name: '网络搜索' },
                            { value: 8.80, name: '广告杂志' },
                            { value: 5.77, name: '展会促销' },
                            { value: 4.55, name: '其他途径' }
                        ],
                        emphasis: {
                            itemStyle: {
                                shadowBlur: 10,
                                shadowOffsetX: 0,
                                shadowColor: 'rgba(0, 0, 0, 0.5)'
                            },
                        },
                        padAngle: 1
                    }
                ]
            }
        },
        echarts414: {
            width: "50%",
            height: "450px",
            options: {
                title: {
                    text: '所在城市',
                    top: 20
                },
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },

                grid: {
                    left: '3%',
                    right: '4%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: [0, 0.01],
                    data: ['北京','广州','上海','深圳','天津','武汉','重庆']
                },
                yAxis: {
                    type: 'value',
                    data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
                },
                series: [
                    {
                        name: '新增客户',
                        type: 'bar',
                        itemStyle: {
                            color: "#3aa0ff"
                        },
                        data: [2650,2520,2330,2150,1840,1830,1450]
                    }
                ]
            }
        },
        echarts415: {
            width: "50%",
            height: "450px",
            options: {
                title: {
                    text: '所属行业',
                    top: 20
                },
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },

                grid: {
                    left: '3%',
                    right: '4%',
                    containLabel: true
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: [0, 0.01],
                    data: ['家用电器','交通运输','商务服务','家居用品','电工电气','数码产品','通信产品']
                },
                yAxis: {
                    type: 'value',
                    data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
                },
                series: [
                    {
                        name: '新增客户',
                        type: 'bar',
                        itemStyle: {
                            color: "#3aa0ff"
                        },
                        data: [2650,2520,2330,2150,1840,1830,1450]
                    }
                ]
            }
        },

    })






})